package models

type Manager struct {
	ID       int    `gorm:"primaryKey"`
	Username string `gorm:"unique;not null"`
	Password string
	Mobile   string
	Email    string
	Status   int
	RoleID   int
	AddTime  int
	IsSuper  int
	Role     Role `gorm:"foreignKey:RoleID"`
}

func (Manager) TableName() string { // 自定义表名
	return "manager"
}
